<?php 
/*echo "<pre>";
print_r($form);
echo "</pre>";*/
?>
<?php 
/**
  *Mobile number customization
  */
  unset($form['cancel']);
  unset($form['panes']['email_text']);
  unset($form['panes']['customer']); 
  unset($form['panes']['delivery']['delivery_phone']['#title']);
  unset($form['panes']['delivery']['delivery_first_name']['#title']);
  unset($form['panes']['delivery']['delivery_last_name']['#title']);
  unset($form['panes']['delivery']['delivery_company']['#title']);
  unset($form['panes']['delivery']['delivery_street1']['#title']);
  unset($form['panes']['delivery']['delivery_street2']['#title']);
  unset($form['panes']['delivery']['delivery_city']['#title']);
  unset($form['panes']['delivery']['delivery_company']['#title']);
  unset($form['panes']['delivery']['delivery_zone']['#title']);
  unset($form['panes']['delivery']['delivery_postal_code']['#title']);
  unset($form['continue']['#value']);
  global $user;
  $profile_node = content_profile_load('profile', $user->uid);
  
  $form['panes']['delivery']['delivery_phone']['#value'] = $profile_node->field_mobile[0]['value'];
  $form['panes']['delivery']['delivery_first_name']['#value'] = $profile_node->field_first_name[0]['value'];
  $form['panes']['delivery']['delivery_last_name']['#value'] = $profile_node->field_family_name[0]['value'];
  $form['panes']['delivery']['delivery_company_name']['#value'] = $profile_node->field_college_name[0]['value'];
  $form['panes']['delivery']['delivery_phone']['#attributes'] = array('class'=>"signup_input",'readonly'=>"readonly");
  $form['panes']['delivery']['delivery_first_name']['#attributes'] = array('class'=>"signup_input",'readonly'=>"readonly");
  $form['panes']['delivery']['delivery_last_name']['#attributes'] = array('class'=>"signup_input",'readonly'=>"readonly");
  $form['panes']['delivery']['delivery_company']['#attributes'] = array('class'=>"signup_input",'readonly'=>"readonly");
  $form['panes']['delivery']['delivery_street1']['#attributes'] = array('class'=>"signup_input street1");
  $form['panes']['delivery']['delivery_street2']['#attributes'] = array('class'=>"signup_input street2");
  $form['panes']['delivery']['delivery_city']['#attributes'] = array('class'=>"signup_input city");
  $form['panes']['delivery']['delivery_zone']['#attributes'] = array('class'=>"signup_input required");
  $form['panes']['delivery']['delivery_postal_code']['#attributes'] = array('calss'=>"required");
  $form['continue']['#attributes']=array('class'=>'make_payment1'); 
  unset($form['panes']['payment']['payment_method']['#title']);
  
  #value

//echo   $dob = date("d m Y",strtotime($profile_node->field_dob[0]['value']));
$day = date("d",strtotime($profile_node->field_dob[0]['value']));
$month = date("M",strtotime($profile_node->field_dob[0]['value']));
$year = date("Y",strtotime($profile_node->field_dob[0]['value']));
//print drupal_render($form['panes']['delivery']['delivery_phone']);
?><h3 style="font-size:18px; color:#0099FF;">Order Details</h3>
<div class="order_details"><?php print drupal_render($form['panes']['cart']);?></div>
<h3 style="font-size:18px; color:#0099FF;">User Details</h3>
<table cellpadding="1" class="user_details">
          	<tbody><tr>
            	<td>First Name <br />
                <?php print drupal_render($form['panes']['delivery']['delivery_first_name']);?></td>

                 <td>Date of Birth<br />
					 <select disabled="disabled" class="input_select_small"><option><?php echo $day?></option></select>
                      <select disabled="disabled" class="input_select_small"><option><?php echo $month?></option></select>
                      <select disabled="disabled" class="input_select_small"><option><?php echo $year?></option></select></td>   
                 <td>Family Name <br />
					<?php print drupal_render($form['panes']['delivery']['delivery_last_name']);?></td>
                 <td>Address Line 1 
					<?php print drupal_render($form['panes']['delivery']['delivery_street1']);?></td>  
                 <td>Mobile number (Enter 10 digit mobile number)<br />
					<?php print drupal_render($form['panes']['delivery']['delivery_phone']);?></td>
                 <td>Address Line2
					<?php print drupal_render($form['panes']['delivery']['delivery_street2']);?></td>  

                 <td>e-mail ID<br />
					<input type="text" class="signup_input" name="email" value="<?php echo $user->mail;?>" readonly="readonly"></td>
					</td>
                 <td>Town / City

					<?php print drupal_render($form['panes']['delivery']['delivery_city']);?></td>  
                    <td>College name/Company<br />
					<?php print drupal_render($form['panes']['delivery']['delivery_company']);?></td>
                 <td><div class="user_state" style="width:50%; float:left;">State 
					<?php print drupal_render($form['panes']['delivery']['delivery_zone']);?></div>
                     <div class="user_pin" style="width:50%; float:left;">Pin Code <?php print drupal_render($form['panes']['delivery']['delivery_postal_code']);?></div>
                      </td>  
                    
            </tr>
          
          </tbody></table>
<h3 style="font-size:18px; color:#0099FF;">Payment Method</h3>
		            <?php 
							print drupal_render($form['panes']['payment']['payment_method']);
//					print drupal_render($form['continue']);				
					?>
				<input type="button" class="form-submit make_payment1" value="" id="edit-continue" name="op">
					<div style="display:none;">
                    	<?php print drupal_render($form);?>
                    </div>